#ifndef _RELIBC_PTY_H
#define _RELIBC_PTY_H

#include <sys/ioctl.h>
#include <termios.h>

#ifdef __cplusplus
extern "C" {
#endif // __cplusplus

int openpty(int *amaster,
            int *aslave,
            char *namep,
            const struct termios *termp,
            const struct winsize *winp);

int forkpty(int *pm, char *name, const struct termios *tio, const struct winsize *ws);

#ifdef __cplusplus
} // extern "C"
#endif // __cplusplus

#endif /* _RELIBC_PTY_H */
